from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication, QMainWindow, QWidget, QTextBrowser, QPushButton
from Ui_main import Ui_Form


class myMainWindow(QWidget):
    def __init__(self):
        super().__init__()

        self.ui = Ui_Form()
        self.ui.setupUi(self)
        self.bt1=self.ui.pushButton1
        self.bt1.clicked.connect(self.bt_clicked)
    def bt_clicked(self):
        print("button clicked")



if __name__ == "__main__":
    app = QApplication()
    mainWindow = myMainWindow()
    mainWindow.show()
    app.exec()



